package Socket;

public class T {
    public static void main(String[] args) {
        Runnable r = new Runnable() {
            @Override
            public void run() {
                while (true){
                    System.out.println("11");
                    System.out.println(Thread.currentThread().getName() );
                }
            }
        };
        Thread t = new Thread(r);
        t.setName("新线程");
        t.run();
        while (true){
            System.out.println("222");
        }
    }
}
